<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../layout/base_resource.jsp" %>
<script type="text/javascript" src="${basePath}assets/js/iframe.js"></script>


<div class="loc">
	<h3>首页导出</h3>
	<ul class="loc_loc"><li> 当前位置：数据管理 > 首页导出</li>
	</ul>
</div>
<div class="list_con_table">
	 
   <div class="search_table">
   <input type="hidden" id="basePath" value="${basePath }"/>
   <form id="queryForm">
   	<input type="hidden" name="currentPage" value="1"/>
    <ul>
    <li class='Label_1' style="width:20%">出院日期：&nbsp;</li>
    <li class="Label_2" style="width:80%">
    	<input class="input_box" id="outHospitalStartDate" type="text" style="width:46%" onFocus="WdatePicker()"/>
    	-<input class="input_box" type="text" style="width:46%" id="outHospitalEndDate" onFocus="WdatePicker()" />
    </li>
  
    <li class="Label_5" style="width:180%">
     <a id="queryBtn" onclick="exportClick()">导出</a>
    </li>
    </ul>
    </form>
   </div>
<!--  <h5 align="center" id="export_h"></h5>
 <table style="width:934px; float:left; border-collapse:collapse;" id="query_show_table">
      <thead>
	      <tr>
	      	  <td class="tdLabel_4">住院号</td>
		      <td class="tdLabel_4">病案号</td>
		      <td class="tdLabel_4">姓名</td>
		      <td class="tdLabel_4">身份证号</td>
		      <td class="tdLabel_4">住院次数</td>
		      <td class="tdLabel_4">出院科室</td>
		      <td class="tdLabel_4">出院日期</td>
		      <td class="tdLabel_4">离院方式</td>
		      <td class="tdLabel_4">是否编码</td>
	      </tr>
      </thead>
      <tbody>
      	 <tr hidden="hidden" id="template_tr">
      	  <td class="tdLabel_5"><span class="only_id"></span></td>
	      <td class="tdLabel_5"><span class="mr_id"></span></td>
	      <td class="tdLabel_5"><span class="patient_name"></span></td>
	      <td class="tdLabel_5"><span class="id_number"></span></td>
	      <td class="tdLabel_5"><span class="visit_number"></span></td>
	      <td class="tdLabel_5"><span class="out_dept_name"></span></td>
	      <td class="tdLabel_5"><span class="out_hospital_date"></span></td>
	      <td class="tdLabel_5"><span class="out_hospital_type_name"></span></td>
	      <td class="tdLabel_5"><span class="quality_control_status_name"></span></td>
	     </tr>
      </tbody>
     </table> -->
     
     <script type="text/javascript">
     	function exportClick(){
     	
     		var startTime = $("#outHospitalStartDate").val();
     		var endTime = $("#outHospitalEndDate").val();
     		if(!startTime || !endTime){
     			layer.msg("开始时间和结束时间不可为空!");
     			return;
     		}
     		
     		window.location.href="${basePath}/data_manage/getExportWtsy?startTime="+startTime+"&endTime="+endTime+""
     	
     	}
     
     </script>
    
</div>